import request from '@/config/axios'


export interface BookDebrisPageReqVO {
  id: number
  isbn: string
  part: string
  chapter: number
  section: number
  pid: any
  title: number
  content: number
  pageNo: number
  pageSize: number
}

// 查询碎片库列表
export const page = async (params: PageParam) => {
  return await request.get({ url: '/pageBookDebris', params })
}

// 查询碎片库详情
export const one = async (params: PageParam) => {
  return await request.get({ url: '/pageBookDebris', params })
}

//知识点数据接口
export const Dropinterface = async (params: PageParam) => {
  return await request.get({ url: '/hierarchy/ckmSeg', params })
}
//知识点数据接口
export const update = async (params: PageParam) => {
  return await request.post({ url: '/debris/update', params })
}
//知识点数据接口
export const del = async (params: PageParam) => {
  return await request.delete({ url: '/debris/del', params })
}

//查看文中位置数据接口
// export const Checkout = async (params: PageParam) => {
//   return await request.get({ url: '/getChapter', params })
// }
